package com.itheima.health.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.health.pojo.Role;
import com.itheima.health.vo.RoleVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface RoleMapper extends BaseMapper<Role> {
    @Select("select * from t_role where id=#{uid}")
    RoleVO findRoleVO(Integer uid);

    @Select("select role_id from t_user_role where user_id=#{uid}")
    List<Integer> fnndallpermissionIdlist(@Param("uid") Integer uid);
}
